import React from 'react'

import {BrowserRouter  as Router,Route,Link,Redirect} from 'react-router-dom'
import CityList from './pages/CityList'
import Home from './pages/Home'
import Map from './pages/Map'

 function App() {
  return (
        <Router>


            <div   className='App'  >  

                 
              {/* 配置路由 */}

                <Route  exact  path= '/'    render = {  ()=> <Redirect   to='/home'   ></Redirect>}></Route>
                 <Route  path='/home'    component={Home} />
                 <Route  path='/map'  component={Map}></Route>
                 <Route  path='/citylist'  component={CityList} />
                

            </div>





        </Router>
  )
}

 
export default    App